<template>
  <div>
    用户列表

    <el-button @click="openAddUserDialog()">添加用户</el-button>

    <el-dialog title="提示" :visible.sync="addDialog.visible" width="30%" :before-close="handleClose()">
      <span>这是一段信息</span>
      <p>这是以个屁</p>
      <span slot="footer" class="dialog-footer">
        <el-button @click="dialogVisible = false">取 消</el-button>
        <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
      </span>
    </el-dialog>
  </div>
</template>

<script>
export default {
  data() {
    return {
      addDialog: {
        visible: false,
        form: {},
        formRules: []
      }
    }
  },
  methods: {
    handleClose() {},
    openAddUserDialog() {
      this.addDialog.visible = true
    }
  }
}
</script>

<style lang="less" scoped></style>
